home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 4838 / 4838.xpi / chrome / multipletab.jar / content / multipletab / multipletab.xul < prev   
Extensible Markup Language  |  2010-02-03  |  12KB  |  218 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://multipletab/skin/multipletab.css" type="text/css"?>
  4. <?xul-overlay href="lib/tabFx2Compatible.xul"?>
  5.  
  6. <!DOCTYPE overlay SYSTEM "chrome://multipletab/locale/multipletab.dtd">
  7.  
  8. <overlay id="multipletab-overlay"
  9.          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  10.          xmlns:html="http://www.w3.org/1999/xhtml">
  11.  
  12. <script src="lib/autoScroll.js" type="application/javascript"/>
  13. <script src="lib/stopRendering.js" type="application/javascript"/>
  14. <script src="lib/prefs.js" type="application/javascript"/>
  15. <script src="multipletab.js" type="application/javascript"/>
  16. <script src="bookmarksOverlay.js" type="application/javascript"/>
  17. <script src="hacks.js" type="application/javascript"/>
  18.  
  19. <popupset id="mainPopupSet">
  20.     <stringbundle id="multipletab-bundle" src="chrome://multipletab/locale/multipletab.properties"/>
  21.     <!--stringbundle id="multipletab-tabbrowserBundle" src="chrome://global/locale/tabbrowser.properties"/-->
  22.     <stringbundle id="multipletab-tabbrowserBundle" src="chrome://browser/locale/tabbrowser.properties"/>
  23.  
  24.     <menupopup id="multipletab-selection-menu"
  25.         label="&config.tabs.selectionMenu;"
  26.         oncommand="this.hidePopup();"
  27.         onpopupshowing="
  28.             MultipleTabService.showHideMenuItems(this);
  29.             MultipleTabService.updateMenuItems(this);
  30.         "
  31.         onpopuphidden="
  32.             if (event.target != this) return;
  33.             if (this.autoClearSelection)
  34.                 MultipleTabService.clearSelection();
  35.             this.autoClearSelection = false;
  36.         ">
  37.         <menuitem id="multipletab-selection-reloadTabs"
  38.             label="&popup.selection.reloadTabs;"
  39.             oncommand="MultipleTabService.reloadTabs(MultipleTabService.getSelectedTabs());"/>
  40.         <menuitem id="multipletab-selection-addBookmark"
  41.             label="&popup.selection.addBookmark;"
  42.             oncommand="MultipleTabService.addBookmarkFor(MultipleTabService.getSelectedTabs());"/>
  43.         <menuseparator id="multipletab-selection-duplicate-separator"/>
  44.         <menuitem id="multipletab-selection-duplicateTabs"
  45.             label="&popup.selection.duplicateTabs;"
  46.             oncommand="MultipleTabService.duplicateTabs(MultipleTabService.getSelectedTabs());"/>
  47.         <menuitem id="multipletab-selection-splitWindow"
  48.             label="&popup.selection.splitWindow;"
  49.             oncommand="MultipleTabService.splitWindowFrom(MultipleTabService.getSelectedTabs());"/>
  50.         <menuseparator id="multipletab-selection-remove-separator"/>
  51.         <menuitem id="multipletab-selection-removeTabs"
  52.             label="&popup.selection.removeTabs;"
  53.             oncommand="MultipleTabService.closeTabs(MultipleTabService.getSelectedTabs());"/>
  54.         <menuitem id="multipletab-selection-removeOther"
  55.             label="&popup.selection.removeOther;"
  56.             oncommand="
  57.                 var tabs = MultipleTabService.getSelectedTabs();
  58.                 MultipleTabService.closeOtherTabs(tabs);
  59.                 MultipleTabService.clearSelection(MultipleTabService.getTabBrowserFromChild(tabs[0]));
  60.             "
  61.             multipletab-enabled="selectedTabs.length < tabs.length"/>
  62.         <menuseparator id="multipletab-selection-clipboard-separator"/>
  63.         <menuitem id="multipletab-selection-clipboard"
  64.             label="&popup.selection.clipboard;"
  65.             oncommand="MultipleTabService.copyURIsToClipboard(MultipleTabService.getSelectedTabs());"/>
  66.         <menu id="multipletab-selection-clipboard:select"
  67.             label="&popup.selection.clipboard;"
  68.             oncommand="MultipleTabService.copyURIsToClipboard(MultipleTabService.getSelectedTabs(), Number(event.target.getAttribute('format-type')), event.target.getAttribute('value'));">
  69.             <menupopup onpopupshowing="MultipleTabService.initCopyFormatItems(this);">
  70.                 <menuitem label="&popup.context.clipboard.format.default;"
  71.                     format-type="0"/>
  72.                 <menuitem label="&popup.context.clipboard.format.mozurl;"
  73.                     format-type="1"/>
  74.                 <menuitem label="&popup.context.clipboard.format.link;"
  75.                     format-type="2"/>
  76.                 <menuseparator hidden="true"/>
  77.             </menupopup>
  78.         </menu>
  79.         <menuitem id="multipletab-selection-saveTabs"
  80.             label="&popup.selection.saveTabs;"
  81.             oncommand="MultipleTabService.saveTabs(MultipleTabService.getSelectedTabs());"/>
  82.         <menu id="multipletab-selection-saveTabs:select"
  83.             label="&popup.selection.saveTabs;"
  84.             oncommand="MultipleTabService.saveTabs(MultipleTabService.getSelectedTabs(), Number(event.target.getAttribute('save-type')));">
  85.             <menupopup>
  86.                 <menuitem label="&popup.context.saveTabs.type.file;"
  87.                     save-type="0"/>
  88.                 <menuitem label="&popup.context.saveTabs.type.complete;"
  89.                     save-type="1"/>
  90.                 <menuitem label="&popup.context.saveTabs.type.text;"
  91.                     save-type="2"/>
  92.             </menupopup>
  93.         </menu>
  94.         <menuseparator id="multipletab-selection-print-separator"/>
  95.         <menuitem id="multipletab-selection-printTabs"
  96.             label="&popup.selection.printTabs;"
  97.             oncommand="MultipleTabService.printTabs(MultipleTabService.getSelectedTabs());"
  98.             multipletab-available="'PrintAllTabs' in window"/>
  99.         <menuseparator id="multipletab-selection-lock-separator"/>
  100.         <menuitem id="multipletab-selection-freezeTabs"
  101.             label="&popup.selection.freezeTabs;"
  102.             type="checkbox" autocheck="false"
  103.             oncommand="MultipleTabService.toggleTabsFreezed(MultipleTabService.getSelectedTabs(),
  104.                 this.getAttribute('checked') != 'true');"
  105.             multipletab-available="MultipleTabService.canFreezeTab"/>
  106.         <menuitem id="multipletab-selection-protectTabs"
  107.             label="&popup.selection.protectTabs;"
  108.             type="checkbox" autocheck="false"
  109.             oncommand="MultipleTabService.toggleTabsProtected(MultipleTabService.getSelectedTabs(),
  110.                 this.getAttribute('checked') != 'true');"
  111.             multipletab-available="MultipleTabService.canProtectTab"/>
  112.         <menuitem id="multipletab-selection-lockTabs"
  113.             label="&popup.selection.lockTabs;"
  114.             type="checkbox" autocheck="false"
  115.             oncommand="MultipleTabService.toggleTabsLocked(MultipleTabService.getSelectedTabs(),
  116.                 this.getAttribute('checked') != 'true');"
  117.             multipletab-available="MultipleTabService.canLockTab"/>
  118.     </menupopup>
  119.  
  120.     <menupopup id="multipletab-tabcontext-menu-template">
  121.  
  122.         <menuitem id="multipletab-context-duplicate"
  123.             label="&popup.context.duplicate;"
  124.             oncommand="MultipleTabService.duplicateTabs([MultipleTabService.getTabBrowserFromChild(this).mContextTab]);"
  125.             multipletab-insertafter="XPath: descendant::*[starts-with(@id, 'context_newTab')][1] | child::xul:menuitem[1]"/>
  126.  
  127.         <menuitem id="multipletab-context-removeSimilar"
  128.             label="&popup.context.removeSimilar;"
  129.             tbattr="tabbrowser-multiple"
  130.             oncommand="MultipleTabService.closeSimilarTabsOf(MultipleTabService.getTabBrowserFromChild(this).mContextTab);"
  131.             multipletab-insertafter="XPath: descendant::*[starts-with(@id, 'context_closeOtherTabs')][1]"/>
  132.  
  133.         <menuseparator id="multipletab-context-separator-removeTabs"
  134.             tbattr="tabbrowser-multiple"
  135.             multipletab-insertbefore="XPath: descendant::*[starts-with(@id, 'context_closeTab')][1] | child::xul:menuitem[last()])/preceding-sibling::xul:menuseparator[1]"/>
  136.         <menuitem id="multipletab-context-removeLeftTabs"
  137.             label-horizontal="&popup.context.removeLeftTabs.horizontal;"
  138.             label-vertical="&popup.context.removeLeftTabs.vertical;"
  139.             oncommand="MultipleTabService.closeTabs(MultipleTabService.getLeftTabsOf(MultipleTabService.getTabBrowserFromChild(this).mContextTab));"
  140.             multipletab-insertafter="XPath: descendant::*[starts-with(@id, 'multipletab-context-separator-removeTabs')][1]"/>
  141.         <menuitem id="multipletab-context-removeRightTabs"
  142.             label-horizontal="&popup.context.removeRightTabs.horizontal;"
  143.             label-vertical="&popup.context.removeRightTabs.vertical;"
  144.             oncommand="MultipleTabService.closeTabs(MultipleTabService.getRightTabsOf(MultipleTabService.getTabBrowserFromChild(this).mContextTab));"
  145.             multipletab-insertafter="XPath: descendant::*[starts-with(@id, 'multipletab-context-removeLeftTabs')][1]"/>
  146.         <menuitem id="multipletab-context-removeAll"
  147.             label="&popup.context.removeAll;"
  148.             tbattr="tabbrowser-multiple"
  149.             oncommand="MultipleTabService.closeTabs(MultipleTabService.getTabsArray(MultipleTabService.getTabBrowserFromChild(this)));"
  150.             multipletab-insertafter="XPath: descendant::*[starts-with(@id, 'multipletab-context-removeRightTabs')][1]"/>
  151.  
  152.         <menuitem id="multipletab-context-clipboard"
  153.             label="&popup.context.clipboard;"
  154.             oncommand="MultipleTabService.copyURIsToClipboard([MultipleTabService.getTabBrowserFromChild(this).mContextTab]);"
  155.             multipletab-insertafter="XPath: descendant::*[starts-with(@id, 'context_bookmarkAllTabs')][1]"/>
  156.         <menu id="multipletab-context-clipboard:select"
  157.             label="&popup.context.clipboard;"
  158.             oncommand="MultipleTabService.copyURIsToClipboard([MultipleTabService.getTabBrowserFromChild(this).mContextTab], Number(event.target.getAttribute('format-type')), event.target.getAttribute('value'));"
  159.             multipletab-insertafter="XPath: descendant::*[starts-with(@id, 'multipletab-context-clipboard')][1]">
  160.             <menupopup onpopupshowing="MultipleTabService.initCopyFormatItems(this);">
  161.                 <menuitem label="&popup.context.clipboard.format.default;"
  162.                     format-type="0"/>
  163.                 <menuitem label="&popup.context.clipboard.format.mozurl;"
  164.                     format-type="1"/>
  165.                 <menuitem label="&popup.context.clipboard.format.link;"
  166.                     format-type="2"/>
  167.                 <menuseparator hidden="true"/>
  168.             </menupopup>
  169.         </menu>
  170.         <menuitem id="multipletab-context-clipboardAll"
  171.             label="&popup.context.clipboardAll;"
  172.             oncommand="MultipleTabService.copyURIsToClipboard(MultipleTabService.getTabsArray(MultipleTabService.getTabBrowserFromChild(this)));"
  173.             multipletab-insertafter="XPath: descendant::*[starts-with(@id, 'multipletab-context-clipboard:select')][1]"
  174.             tbattr="tabbrowser-multiple"/>
  175.         <menu id="multipletab-context-clipboardAll:select"
  176.             label="&popup.context.clipboardAll;"
  177.             oncommand="MultipleTabService.copyURIsToClipboard(MultipleTabService.getTabsArray(MultipleTabService.getTabBrowserFromChild(this)), Number(event.target.getAttribute('format-type')), event.target.getAttribute('value'));"
  178.             multipletab-insertafter="XPath: descendant::*[starts-with(@id, 'multipletab-context-clipboardAll')][1]"
  179.             tbattr="tabbrowser-multiple">
  180.             <menupopup onpopupshowing="MultipleTabService.initCopyFormatItems(this);">
  181.                 <menuitem label="&popup.context.clipboard.format.default;"
  182.                     format-type="0"/>
  183.                 <menuitem label="&popup.context.clipboard.format.mozurl;"
  184.                     format-type="1"/>
  185.                 <menuitem label="&popup.context.clipboard.format.link;"
  186.                     format-type="2"/>
  187.                 <menuseparator hidden="true"/>
  188.             </menupopup>
  189.         </menu>
  190.         <menuitem id="multipletab-context-saveTabs"
  191.             label="&popup.context.saveTabs;"
  192.             oncommand="MultipleTabService.saveTabs([MultipleTabService.getTabBrowserFromChild(this).mContextTab]);"
  193.             multipletab-insertafter="XPath: descendant::*[starts-with(@id, 'multipletab-context-clipboardAll:select')][1]"
  194.             tbattr="tabbrowser-multiple"/>
  195.         <menu id="multipletab-context-saveTabs:select"
  196.             label="&popup.context.saveTabs;"
  197.             oncommand="MultipleTabService.saveTabs(MultipleTabService.getSelectedTabs(), Number(event.target.getAttribute('save-type')));"
  198.             multipletab-insertafter="XPath: descendant::*[starts-with(@id, 'multipletab-context-saveTabs')][1]"
  199.             tbattr="tabbrowser-multiple">
  200.             <menupopup>
  201.                 <menuitem label="&popup.context.saveTabs.type.file;"
  202.                     save-type="0"/>
  203.                 <menuitem label="&popup.context.saveTabs.type.complete;"
  204.                     save-type="1"/>
  205.                 <menuitem label="&popup.context.saveTabs.type.text;"
  206.                     save-type="2"/>
  207.             </menupopup>
  208.         </menu>
  209.         <menuseparator id="multipletab-context-separator-clipboard"
  210.             multipletab-insertafter="XPath: descendant::*[starts-with(@id, 'multipletab-context-saveTabs:select')][1]"
  211.             tbattr="tabbrowser-multiple"/>
  212.  
  213.     </menupopup>
  214.  
  215. </popupset>
  216.  
  217. </overlay>
  218.